package com.bjqg.bjqg01.bjqg.adapter;

import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;

import com.bjqg.bjqg01.bjqg.R;
import com.bjqg.bjqg01.bjqg.bean.SampleInfoBean;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * Created by bjqg01 on 2017/12/12.
 */

public class PriceInQuiryAdapter extends BaseQuickAdapter<SampleInfoBean.DsBean, BaseViewHolder>{


    public PriceInQuiryAdapter(@LayoutRes int layoutResId, @Nullable List<SampleInfoBean.DsBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, SampleInfoBean.DsBean item) {
//        helper.setText(R.id.text_title,item.toString());
        helper.setText(R.id.xmlb_item_price,item.getXmlb().toString())
                .setText(R.id.clmc_item_price,item.getClmc().toString())
                .setText(R.id.dj_item_price,item.getDanjia().toString())
                .setText(R.id.bzyj_item_price,item.getBzyj().toString())
                .setText(R.id.jyxm_item_price,item.getJyxm().toString());
    }
}
